def printName(isChinese,name,familyName):
    def inner_print(a,b):
        print("{} {}".format(a,b))
    if isChinese:
        inner_print(familyName,name)
    else:
        inner_print( name,familyName)

printName(True,"永川","杜")